package assdraw2.canvas.abstraction;

import java.awt.Color;

import assdraw2.canvas.abstraction.command.AddCommand;
import assdraw2.canvas.abstraction.command.LineCommand;

public class CanvasAbstraction {

	private CanvasShapeModel shapeModel;
    private Selection slection;
    private AddCommand currentCommand = new LineCommand();
	private Color currentColor = Color.BLACK;
    
	public CanvasAbstraction(CanvasShapeModel shapeModel, Selection slection) {
		super();
		this.shapeModel = shapeModel;
		this.slection = slection;
	}
	
	
	public CanvasShapeModel getShapeModel() {
		return shapeModel;
	}
	
	public Selection getSlection() {
		return slection;
	}


	public void setCanvasModel(CanvasShapeModel d) {
		shapeModel = d;		
	}


	public void setCurrentColor(Color currentColor) {
		this.currentColor = currentColor;
	}


	public Color getCurrentColor() {
		return currentColor;
	}


	public void setCurrentCommand(AddCommand currentCommand) {
		this.currentCommand = currentCommand;
	}


	public AddCommand getCurrentCommand() {
		return currentCommand;
	}    
	
}
